<%@ page import="com.edu.dreams.entity.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>童话世界</title>
    <meta name="description" content="一个充满童话世界的地方，带你回味童年."/>
    <meta name="keywords" content="童话、英雄和魔法"/>
    <link rel="shortcut icon" href="images/favicon.ico"/>
    <!-- 引入bootstrap 样式文件 -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <!-- 引入我们自己的首页样式文件 -->
    <link rel="stylesheet" href="css/index2.css">
    <!-- 先引入jquery js文件 -->
    <script src="js/jquery-3.5.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<!-- 导航栏 -->
<nav class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="${pageContext.request.contextPath}/home"><img style="margin-left: 15px;"
                                                                                        src="images/logo.jpg"
                                                                                        alt="童话世界"></a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="${pageContext.request.contextPath}/home">首页 <span
                        class="sr-only">(current)</span></a></li>
                <li><a href="${pageContext.request.contextPath}/animations">动画</a></li>
                <li><a href="${pageContext.request.contextPath}/news">资讯</a></li>
                <li><a href="rank.html">排行榜</a></li>
                <li class="active"><a href="${pageContext.request.contextPath}/personal">个人中心</a></li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="搜索动画">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="${pageContext.request.contextPath}/personal">${info.user_name}
                </a></li>
                <li><a href="${pageContext.request.contextPath}/logout">退出登录</a></li>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container-fluid -->
</nav>

<!--主体部分-->
<div class="container">
    <form action="${pageContext.request.contextPath}/updatepersonal" method="post">
        <table width="500" border="0" cellpadding="0" cellspacing="0" style="line-height:40px" class="table table-bordered">
            <tr>
                <td align="right">昵称：</td>
                <td><input name="user_nickname" id="txt_Name" class="form-control" value="${info.user_nickname}"/>
                    
                </td>
            </tr>
            <tr>
                <td align="right">性别：</td>
                <td><input name="user_gender" type="text" id="txt_Remark3" class="form-control" value="${info.user_gender}"/>
                    
                </td>
            </tr>
            <tr>
                <td align="right">地区：</td>
                <td><input name="user_diqu" type="text" id="txt_Remark3" class="form-control"
                           value="${info.user_diqu==null?"":info.user_diqu}"/>
                    
                </td>
            </tr>
            <tr>
                <td align="right">简介：</td>
                <td><textarea id="ctl00_content_"
                              name="user_jianjie" class="form-control">${info.user_jianjie == null ? "" : info.user_jianjie}</textarea>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input id="btn_Save" value="保存" type="submit" class="btn btn-default"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="btn_Save2" value="重置" type="reset" class="btn btn-default"/>
                    <input type="hidden" name="user_id" value="${info.user_id}"></td>
            </tr>
        </table>
    </form>
</div>

<!-- 页面尾部 -->
<div class="footer container">
    <hr>
    <p class="text-center">2020-forever</p>
</div>

</body>

</html>